package com.example.higo.view.fragment.shishangquan;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.higo.R;
import com.example.higo.api.service.ExceptionHandle;
import com.example.higo.model.entity.shishangquan.Shishangquan;
import com.example.higo.persenter.shishangquan.ShishangquanPersenter;
import com.example.higo.view.fragment.BaseFragment;
import com.example.higo.view.imp.shishangquan.ShishangquanView;

/**
 * A simple {@link Fragment} subclass.
 */
public class ShishangquanFragment extends BaseFragment implements ShishangquanView{

    private ShishangquanPersenter persenter;
    private String page = "1";

    public static ShishangquanFragment newInstance() {
        
        Bundle args = new Bundle();
        
        ShishangquanFragment fragment = new ShishangquanFragment();
        fragment.setArguments(args);
        return fragment;
    }
    @Override
    public int getLayout() {
        return R.layout.fragment_shishangquan;
    }

    @Override
    public void initViews() {
         persenter = new ShishangquanPersenter(this);
    }

    @Override
    public void loadData() {
        persenter.getShishangquanData(page);
    }

    @Override
    public void onSuccess(Shishangquan shishangquan) {

    }

    @Override
    public void onFail(ExceptionHandle.ResponeThrowable e) {

    }

    @Override
    public void onFinish() {

    }
}
